/**
 * 
 */
package com.antilia.infomaresme.resources;

import org.apache.wicket.ResourceReference;
import org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow;
import org.apache.wicket.markup.html.CSSPackageResource;
import org.apache.wicket.markup.html.resources.CompressedResourceReference;
import org.apache.wicket.model.IModel;

/**
 * Extension of ModalWindow added as a convenience for modifying the 
 * styles.
 * 
 * @author Ernesto Reinaldo Barreiro
 *
 */
public class InfoModalWindow extends ModalWindow {

	private static final long serialVersionUID = 1L;
	
	private static ResourceReference CSS = new CompressedResourceReference(InfoModalWindow.class, 
			"application.css");

	public final static String CSS_CLASS_PAN = "w_pan";
	
	/**
	 * @param id
	 */
	public InfoModalWindow(String id) {
		super(id);
		init();
	}

	/**
	 * @param id
	 * @param model
	 */
	public InfoModalWindow(String id, IModel<?> model) {
		super(id, model);
		init();
	}

	/**
	 * Initialize
	 */
	private void init()
	{
		setCssClassName(CSS_CLASS_PAN);
		add(CSSPackageResource.getHeaderContribution(CSS));
	}
}
